<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-text和v-html指令</title>
</head>

<body>
    <div id="app">
        <h1>{{msg}}</h1>
        <h1 v-text="msg"></h1>
        <h1 v-text="vtext"></h1>
        <h1 v-html="vhtml"></h1>
    </div>
</body>
<script src="./js/vue.js"></script>
<script>
    let app = new Vue({
        el:'#app',
        data:{
            msg:"hello vue",
            vtext:"<a href='www.baidu.com'>v-text</a>",
            vhtml:"<a href='www.bilibili.com'>v-html</a>"
        },

    })
</script>

</html>